<?php

class SessionServices {

    public static function HasSessionStarted() {
        return isset($_COOKIE['fantasySecurity']);
    }
    
    public static function StartSession($userId) {
        setcookie("fantasySecurity", $userId, time()+60*60*24*365, "/");
    }

    public static function TerminateSession() {
        setcookie("fantasySecurity", "", time()-3600, "/");
    }

    public static function GetSessionId() {
        return $_COOKIE['fantasySecurity'];
    }

}

?>
